package com.cjf.example.springrmi;

import java.util.ArrayList;
import java.util.List;

import org.springframework.stereotype.Service;


@Service
public class AccountServiceImpl implements IAccountService {
	
	private static final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(AccountServiceImpl.class);

	private static List<Account> accountList = new ArrayList<Account>();
	
	public void createAccount(Account account) {
		if(logger.isDebugEnabled()){
			logger.debug("[createAccount] "  + account);
		}
		System.out.println("[createAccount] "  + account);
		accountList.add(account);
	}

	public List<Account> listAccounts() {
		if(logger.isDebugEnabled()){
			logger.debug("[listAccounts] "  + accountList);
		}
		return null;
	}

}
